<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<div class="subnav">
  <div class="content-menu ib-a blue line-x"> <a href="{:U("Comments/Comments/index")}" class="on"><em>评论管理</em></a>
  <span>|</span><a href="{:U("Comments/Comments/check")}"><em>待审核评论</em></a></div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<div class="pad-lr-10">
  <form name="searchform" action="{$Config.siteurl}index.php" method="get" >
    <input type="hidden" value="Comments" name="g">
    <input type="hidden" value="Comments" name="m">
    <input type="hidden" value="index" name="a">
    <table width="100%" cellspacing="0" class="search-form">
      <tbody>
        <tr>
          <td><div class="explain-col">类型:
              <select name="searchtype">
                <option value="1" <if condition="$_GET['searchtype'] eq '1'">selected</if>>评论作者</option>
                <option value="2" <if condition="$_GET['searchtype'] eq '2'">selected</if>>所属文章id</option>
              </select>
              <input type="text" value="{$Think.get.keyword}" class="input-text" name="keyword" size='20'>
              <input type="submit" value="确定搜索" class="button" name="dosubmit">
            </div></td>
        </tr>
      </tbody>
    </table>
  </form>
    <div class="table-list">
    <form name="myform" id="myform" action="" method="post" >
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="20"><input type="checkbox" value="" id="check_box" onclick="selectall('ids[]');"></th>
            <th width="20">ID</th>
            <th width="100">作者</th>
            <th >评论内容</th>
            <th width="180">原文标题</th>
            <th width="180">操作</th>
          </tr>
        </thead>
        <tbody>
        <volist name="data" id="vo">
          <tr>
            <td align="center"><input class="inputcheckbox " name="ids[]" value="{$vo.id}" type="checkbox"></td>
            <td align="center">{$vo.id}</td>
            <td align="center">{$vo.author}</td>
            <td >{$vo.content}</td>
            <td align="center"><a href="{$vo.url}" target="_blank">{$vo.title}</a></td>
            <td align="center"><a href="javascript:confirmurl('{:U("Comments/delete",array("id"=>$vo['id']))}','确认要删除吗？')">删除</a> | <a href="{:U("Comments/edit",array("id"=>$vo['id']))}">编辑</a> | <a href="{:U("Comments/replycomment",array("id"=>$vo['id']))}">回复</a> | 
            <a href="{:U("Comments/spamcomment",array("id"=>$vo['id']))}">取消审核</a></td>
          </tr>
         </volist>
        </tbody>
      </table>
      <div class="btn"><input name="提交" type="submit" class="button" value="删除"/> </div>
      <div id="pages">{$Page}</div>
      </form>
    </div>
</div>
</body>
</html>